package scc.project.entity;

/**
 * @author 陈圳佳
 */
public class SellInfoGoods {
    private Long goodsId;
    private Integer total;
    private Double price;

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getTotalPrice() {
        return price * total;
    }

    @Override
    public String toString() {
        return "SellInfoGoods{" +
                "goodsId=" + goodsId +
                ", total=" + total +
                ", price=" + price +
                '}';
    }
}
